<!-- 首页 -->
<template>
	<view class="home-wrap u-m-b-20">
		<!-- systemBar: "", -->
		<!-- navigationBar: "", -->
		<u-popup v-model="showpopup" :round="20" mode="top" @close="close" @open="open">
			<view class="popup-box" :style="[{paddingTop:systemBar + 'px' }]">
				<view style="display: flex;justify-content: center;align-items: center;"
					:style="[{height: navigationBar + 'px' }]">
					<view style="position: fixed;left: 10px;" @click="showpopup=false">
						<u-icon name="arrow-left" :size="48"></u-icon>
					</view>
					<view style="font-weight: bold;">智能排序</view>
				</view>
				<view>
					<view v-for="(item,index) in sortList" :key="index" class="check-right"
						:class="index==sortType?'active':''" :data-index="index" @click="checkSortType">

						<view style="flex: 1;"> {{item.name}}</view>
						<view>
							<u-icon name="checkbox-mark" v-if="index==sortType" color="#FC5351"></u-icon>
						</view>
					</view>
				</view>
			</view>
		</u-popup>
		<u-popup v-model="showArea" :round="20" mode="top" @close="close" @open="open">
			<view class="popup-box area" :style="[{paddingTop:systemBar + 'px' }]">
				<view style="display: flex;justify-content: center;align-items: center;margin: 20rpx 0px;"
					:style="[{height: navigationBar + 'px' }]">
					<view style="position: fixed;left: 10px;" @click="showArea=false">
						<u-icon name="arrow-left" :size="48"></u-icon>
					</view>
					<view style="font-weight: bold;">选择区域</view>
				</view>
				<view style="display: flex;height: 800rpx;overflow-y: scroll;flex-direction: column">
					<view v-for="(item,index) in areas" :key="index" class="areas" :class="index==areasType?'active':''"
						@click="clickAreas(item.name,index)">
						<view style="flex: 1;"> {{item.name}}</view>
						<u-icon name="checkbox-mark" v-if="index==areasType" color="#FC5351"></u-icon>
					</view>
				</view>
			</view>
		</u-popup>

		<view v-if="isConnected && isRefresh" class="content-box">
			<!-- 导航栏 -->
			<shopro-navbar :isBack="false">
				<view class="u-flex-1 u-flex u-col-center" slot="content">
					<u-search shape="square" action-text="" v-model="keyword" @search="toSearch"
						:action-style="{'display':'none'}" placeholder="请输入商家名称" :showAction="false" height="60">
					</u-search>
				</view>
			</shopro-navbar>
			<view style="	padding-top: 0rpx;margin: 20rpx;border-radius: 16rpx;">
				<u-swiper :list="bannerList" @click="toJoinUs()" :height="300"></u-swiper>
			</view>
			<view style="margin: 20rpx;margin-bottom: 0rpx;">
				<view v-for="(listItem,listIndex) in list" class="fenlei" @click="toCate(listItem.id)"
					:data-id="listItem.id">
					<span class="fenlei-name">{{listItem.name}}</span>
					<!--					<span class="fenlei-desc">共享{{listItem.state}}项特权</span>-->
				</view>

				<!-- 	<u-grid :border="false" col="5" >
					<u-grid-item v-for="(listItem,listIndex) in list" :key="listIndex" v-if="listIndex < 10"  @click="clickFood(listItem)">
						<image class="icon" :src="listItem.logo_image"></image>
						<text class="grid-text">{{listItem.name}}</text>
					</u-grid-item>
				</u-grid> -->
			</view>
			<!-- 	<u-sticky> -->
			<view class="contentall"
				style="background:linear-gradient(180deg, #FFF2DC 0%,rgba(255,255,255,0) 25%, rgba(255,255,255,0) 100%);margin:0 20rpx;">
				<view id="id" class="filter" :style="[{top: stickyTop + 'px' }]" offset-top="200"
					custom-nav-height="220">
					<view :class="active=='-1'?'activeall':''" @click="checkFilter('-1')">
						<span class="title">全部</span>
						<u-icon
							:name="active=='-1'?'https://d-duomi.bigchun.com/images/shangbang/arrow2.png':'https://d-duomi.bigchun.com/images/shangbang/arrow.png'"
							size="30"></u-icon>
					</view>
					<view :class="active=='2'?'activeall':''" @click="checkFilter('2')">
						<span class="title">{{selectArea?selectArea:'请选择区域'}}</span>
						<u-icon
							:name="active=='2'?'https://d-duomi.bigchun.com/images/shangbang/arrow2.png':'https://d-duomi.bigchun.com/images/shangbang/arrow.png'"
							size="30"></u-icon>
					</view>
					<view :class="active=='5'?'activeall':''" @click="checkFilter('5')">
						<span class="title">附近</span>
						<u-icon
							:name="active=='5'?'https://d-duomi.bigchun.com/images/shangbang/arrow2.png':'https://d-duomi.bigchun.com/images/shangbang/arrow.png'"
							size="30"></u-icon>
					</view>
					<view :class="active=='0'?'activeall':''" @click="checkFilter('0')">
						<span class="title">{{sortList[sortType].name}}</span>
						<u-icon
							:name="active=='0'?'https://d-duomi.bigchun.com/images/shangbang/arrow2.png':'https://d-duomi.bigchun.com/images/shangbang/arrow.png'"
							size="30"></u-icon>
					</view>
				</view>
				<!-- 	商品 -->
				<scroll-view :scroll-top="scrollTop" scroll-y="true" class="content " @scrolltolower="lower">
					<view>
						<block v-for="(item,index) in shopList" :key="item.id">
							<search-result :detail="item"
								@click="$Router.push({ path: '/pages/index/GoodsDetails', query: { id: item.id } })"></search-result>
						</block>
						<!--            <u-grid customStyle="margin-bottom: 10px" col="2" :border="false">-->
						<!--              <u-grid-item v-for="(item,index) in shopList" @click="toItem2(item.id,item)"-->
						<!--                           customStyle="position: relative;">-->
						<!--                <image :src="item.shop_image" style="width: 300rpx;height: 214rpx;margin-bottom:20rpx;border-radius: 8rpx;">-->
						<!--                </image>-->
						<!--                <view class="shop-address">{{item.shop_text}}</view>-->
						<!--                <view class="shop-name">{{item.shop_name}}</view>-->
						<!--                &lt;!&ndash; <view class="shop-price">￥{{item.shop_score}}</view> &ndash;&gt;-->
						<!--              </u-grid-item>-->
						<!--            </u-grid>-->
					</view>
					<view v-if="current_page == last_page"
						style="height: 32px;font-size: 12px;font-family: PingFang SC-Regular, PingFang SC;font-weight: 400;color: #999999;line-height: 32px;text-align: center;">
						持续更新请期待~</view>
				</scroll-view>
				<!-- 	</view> -->
			</view>

			<!-- </u-sticky> -->
			<!-- 			<view class="content">-->
			<u-modal v-model="fxShow" :show-cancel-button="true" :content="content" :title="' '">
				<view slot="confirm-button" @click="gohuiyuan()">
					<button
						style="height: 114rpx;display: flex;justify-content: center;align-items: center;background: none; color: #5B6A91">成为会员</button>
				</view>
			</u-modal>

		</view>
		<!-- 悬浮按钮 -->
		<shopro-float-btn v-if="is_finshed"></shopro-float-btn>
	</view>
</template>

<script>
	// 获取系统状态栏的高度
	let systemInfo = uni.getSystemInfoSync();
	import {
		mapMutations,
		mapActions,
		mapState,
		mapGetters
	} from 'vuex';
	import HuixuanClassify from "../../components/huixuan-classify/huixuan-classify";
	import HuixuanExercise from "../../components/huixuan-exercise/huixuan-exercise";
	import store from "@/shopro/store";
	import https from '@/shopro/requests/index'
	// import {unIndexedList} from "../../components/u-index-list/u-index-list.vue"
	import {
		unIndexedList
	} from "../../components/uni-indexed-list/uni-indexed-list.vue"
	export default {
		components: {
			unIndexedList
		},
		data() {
			return {
				isVip: 0, //0非会员  1会员
				fxShow: false,
				content: '',
				selectArea: "",
				current_page: 0,
				last_page: 1,
				sortType: 0,
				areasType: -1,
				statusBarHeight: systemInfo.statusBarHeight,
				showpopup: false,
				showArea: false,
				active: "-1",
				themeColor: "#FC5351",
				// #ifdef MP-WEIXIN
				// #endif
				isRefresh: true,
				enable: false, //是否开启吸顶。
				isConnected: true, //是否有网
				showPrivacy: false, //协议
				isScorll: false,
				sortList: [{
						name: "智能排序",
						id: "1"
					},
					{
						name: "折扣高低",
						id: "2"
					},
					{
						name: "人均消费",
						id: "3"
					},
					{
						name: "好评优先",
						id: "4"
					},
					{
						name: "销量优先",
						id: "5"
					},
					{
						name: "距离优先",
						id: "6"
					},
				],
				bannerList: [
					"https://d-duomi.bigchun.com/images/banner.png"
				],
				list: [{
					name: '吃喝玩乐',
					id: 1
				}, {
					name: '健康保健',
					id: 4
				}, {
					name: '商帮服务',
					id: 2
				}, {
					name: '商帮教育',
					id: 3
				}],
				systemBar: "",
				navigationBar: "",
				menu: "",
				page: 1,
				limit: 6,
				shop_sort: 0,
				shopList: [],
				stickyTop: 0,
				keyword: "",
				// flist: [{
				// 	name: "推荐"
				// }, {
				// 	name: "商圈"
				// }, {
				// 	name: "商场"
				// }, {
				// 	name: "行政区/商圈"
				// }, {
				// 	name: "地铁线"
				// }],
				currentId: 0,
				shangquan: null,
				shangchang: null,
				trans: null,
				areas: null,
				zimuList: null,
				dataList: null,
				datesList: null,
				scrollTop: 0,
				is_finshed: false
			};
		},
		computed: {},
		watch: {
			'$store.state.shopro.pink_time': {
				//对数据执行操作
				deep: true,
				immediate: true,
				handler(val, old) {
					if (val > 0 && this.$store.state.shopro.is_join == 0 && this.$store.state.shopro.vip_pink_id) {
						this.is_finshed = true
					} else {
						this.is_finshed = false
					}
				}
			},
			'$store.state.shopro.is_join': {
				deep: true,
				immediate: true,
				handler(val, old) {
					if (val == 0 && this.$store.state.shopro.vip_pink_id && this.$store.state.shopro.pink_time > 0) {
						this.is_finshed = true
					} else {
						this.is_finshed = false
					}
				}
			},
			'$store.state.shopro.vip_pink_id': {
				immediate: true,
				deep: true,
				handler(val, old) {
					if (val && this.$store.state.shopro.is_join == 0 && this.$store.state.shopro.pink_time > 0) {
						this.is_finshed = true
					} else {
						this.is_finshed = false
					}
				}
			},
		},
		onPullDownRefresh() {
			this.init();
			this.shopLists();
		},
		onPageScroll(e) {
			this.isScorll = e.scrollTop > 100 ? true : false;
			if (this.showArea) {
				this.scrollTop = e.scrollTop;
			}
		},
		onShow() {
			let that = this;
			this.enable = true;
			this.isLogin && this.getCartList();
			// 网络变化检测
			uni.onNetworkStatusChange(res => {
				this.isConnected = res.isConnected;
				res.isConnected && this.init();
			});
		},
		onHide() {
			this.enable = false;
		},
		onReachBottom() {
			this.lower();
		},
		onLoad() {

			wx.getSystemInfo({
				success: res => {
					this.system = res
				}
			})
			this.init();
			this.shopLists();
			//获取胶囊信息
			this.menu = wx.getMenuButtonBoundingClientRect()
			this.systemBar = this.system.statusBarHeight - 10 //状态栏高度
			this.navigationBar = (this.menu.top - this.system.statusBarHeight) * 2 + this.menu.height //胶囊高度
			this.stickyTop = this.systemBar + this.navigationBar + 5;
			// #ifdef APP-VUE
			// app隐私协议弹窗

			if (!plus.runtime.isAgreePrivacy()) {
				this.showPrivacy = true;
				this.showNoticeModal = false;
			}

			// #endif
		},
		methods: {
			bindClick(e) {
				console.log('点击item，返回数据' + JSON.stringify(e))
				// this.checkArea(e.item.name)
			},
			zimuSort(res) {
				var set = new Set();
				console.log(res)
				res.forEach(item => {
					set.add(item.first)
				})
				var data = []
				var data2 = []
				set.forEach(zimu => {
					var temp = []
					var temp2 = {}
					res.forEach(item => {
						if (zimu === item.first) {
							temp.push(item.quan_name)
						}
					})
					data.push(temp)
					temp2.letter = zimu
					temp2.data = temp
					data2.push(temp2)
				})
				this.zimuList = [...set]
				this.dataList = data
				this.datesList = data2
				console.log(this.zimuList)
				console.log(this.dataList)
			},
			getShangquan(trans_id, area) {
				console.log(uni.getStorageSync('city'))
				https('common.cate_shangquan', {
					city: uni.getStorageSync('city'),
					trans_id: trans_id,
					area: area
				}).then(res => {
					this.shangquan = res.data
					this.zimuSort(res.data)
				})
			},
			getShangchang() {
				https('common.cate_shangchang', {
					city: uni.getStorageSync('city')
				}).then(res => {
					this.shangchang = res.data
					this.zimuSort(res.data)
				})
			},
			getTrans() {
				https('common.cate_goods_trans', {
					city: uni.getStorageSync('city')
				}).then(res => {
					this.trans = res.data
				})
			},
			getAreas() {
				https('common.cate_areas', {
					city: uni.getStorageSync('city'),
					latitude: uni.getStorageSync("latitude"),
					longitude: uni.getStorageSync("longitude"),
				}).then(res => {
					this.areas = res.data;
				})
			},
			toupper() {
				console.log("toupper");
				const query = uni.createSelectorQuery().in(this);
				query.select('#id').boundingClientRect(data => {
					console.log("得到布局位置信息" + JSON.stringify(data));
					console.log("节点离页面顶部的距离为" + data.top);
					uni.pageScrollTo({
						scrollTop: data.top, // 滚动到的位置（距离顶部 px）
						duration: 1000 //滚动所需时间 如果不需要滚动过渡动画，设为0（ms）
					})
				}).exec();
			},

			async init() {

				console.log("=========initres")
				var that = this;
				that.isRefresh = false;
				this.$https('common.template_service', {}).then(res => {
					console.log(res)
					if (res) {
						this.service = res.data
					}
				})
				that.$https('category.shangbangTop', {
						token: uni.getStorageSync("token"),
					})
					.then(res => {
						console.log("shangbangTop=========res", res)
						if (res.code === 1) {
							uni.stopPullDownRefresh();
							that.isRefresh = true;
							// this.list = res.data.cate;
							var bannerList = res.data.lunbo;
							this.bannerList = []
							for (var i = 0; i < bannerList.length; i++) {
								var event = bannerList[i];
								var item = {}
								item.image = event.imageurl;
								item.title = event.title;
								item.id = event.id;
								this.bannerList.push(item)
							}
						}
					});

			},
			lower: function(e) {
				console.log(this.current_page)
				console.log(this.per_page)
				if (this.current_page != this.last_page) {
					this.page = this.page + 1;
					this.shopLists()
				}
			},
			onSearch: function(e) {
				console.log(this.current_page)
				console.log(this.per_page)
				this.page = 1,
					this.shopLists()
			},
			async shopLists() {
				console.log("=========initres")
				var that = this;
				//that.isRefresh = false;
				console.log("=========keyword", this.keyword)
				that.$https('category.shopLists', {
						token: uni.getStorageSync("token"),
						page: this.page,
						limit: this.limit,
						shop_sort: this.sortType,
						keyword: this.keyword,
						city: uni.getStorageSync("city"),
						latitude: uni.getStorageSync("latitude"),
						longitude: uni.getStorageSync("longitude"),
						area: this.selectArea
					})
					.then(res => {
						console.log("shopLists=========res", res)
						if (res.code === 1) {
							// that.shopList=res.data.data;
							if (res.data.current_page != 1) {
								that.shopList = that.shopList.concat(res.data.data);
								that.current_page = res.data.current_page;
								that.last_page = res.data.last_page;
								that.per_page = res.data.per_page;
								that.total = res.data.total;
							} else {
								that.shopList = res.data.data;
								that.current_page = res.data.current_page;
								that.last_page = res.data.last_page;
								that.per_page = res.data.per_page;
								that.total = res.data.total;
							}
						}
					});

			},
			//一级分类点击
			// tabtap(item, index) {
			// 	this.currentId = index;
			// 	console.log(item)
			// 	if (item.name === '推荐') {
			// 		this.getShangquan()
			// 	} else if (item.name === '商圈') {
			// 		this.getShangquan()
			// 	} else if (item.name === '商场') {
			// 		this.getShangchang()()
			// 	} else if (item.name === '地铁线') {
			// 		this.getTrans()
			// 	} else if (item.name === '行政区/商圈') {
			// 		this.getAreas()
			// 	}
			// },
			toJoinUs() {
				uni.navigateTo({
					url: '/pages/app/joinUs/joinUs'
				})
			},
			toItem2(id, item) {
				this.$https('user.isVip').then(res => {
					if (res.code === 1) {
						this.isVip = res.data;
					}
				})
				if (item.is_qiye) {
					if (!this.isVip) {
						this.content = '该店铺为企业类店铺 成为会员才能查看哦！'
						this.fxShow = true
					} else {
						uni.navigateTo({
							url: '/pages/index/GoodsDetails?id=' + id
						})
					}
				} else {
					console.log(1111)
					uni.navigateTo({
						url: '/pages/index/GoodsDetails?id=' + id
					})
				}

			},
			toItem(e) {
				console.log(e.currentTarget.dataset.id)
				uni.navigateTo({
					url: '/pages/index/GoodsDetails?id=' + e.currentTarget.dataset.id
				})
			},
			toSearch(e) {
				uni.navigateTo({
					url: '/pages/goods/list?keywords=' + this.keyword
				})
			},
			toCate(id) {
				if (id == 2) {
					this.$Router.push(`/pages/index/serveList?id=${id}`);
				} else if (id == 1) {
					this.$Router.push(`/pages/goods/list?shop_type=play`);
				} else {
					this.$Router.push(`/pages/index/serve?id=${id}`);
				}

				// uni.navigateTo({
				// 	url: '/pages/index/category/moreCate?id=' + e.currentTarget.dataset.id
				// })
			},
			clickFood(e) {
				console.log('e', e)
				if (e.name == "全部服务") {
					uni.navigateTo({
						url: '/pages/index/serve?type=category'
					})
				} else {
					uni.navigateTo({
						url: '/pages/index/food?store_cate_id=' + e.store_cate_id + "&title=" + e.name
					})
				}
			},
			open() {
				// console.log('open');
			},
			close() {
				this.showpopup = false
				// console.log('close');
			},
			checkFilter(active) {
				this.page = 1;
				if (active == '0') {
					this.showpopup = true
					console.log(this.showpopup);
					this.active = active;
				} else if (active == '2') {
					this.showArea = true
					console.log(this.showArea);
					this.active = active;
					// this.getShangquan()
					this.getAreas();
				} else {
					this.active = active;
					this.shopList = []
					this.shopLists()
				}
			},
			checkSortType(e) {
				var index = e.currentTarget.dataset.index;
				this.sortType = index;
				this.showpopup = false
				this.shopList = []
				this.shopLists()
				console.log(e);
			},
			clickTrans(id) {
				this.getShangquan(id)
			},
			clickAreas(area, index) {
				this.areasType = index;
				this.checkArea(area)
				// this.getShangquan(null,area)
			},
			checkArea(name) {
				this.showArea = false
				this.shopList = []
				this.selectArea = name
				this.shopLists()

			},
			result(val) {
				console.log('filter_result:' + JSON.stringify(val));
				this.filterResult = JSON.stringify(val, null, 2)
			},
			gohuiyuan() {
				this.$Router.push({
					path: '/pages/index/membeRecharge'
				})
			},
			...mapActions(['appInit', 'getTemplate', 'getCartList', 'userInfo']),
			// 初始化

		}
	};
</script>

<style lang="scss" scoped>
	/deep/.u-drawer-content {
		border-radius: 0px 10px !important;
	}

	/deep/.u-drawer__scroll-view {
		border-radius: 0px 10px !important;
	}

	/deep/.cu-bar .content {
		margin: auto 2%;
		width: 96%;

	}

	/deep/.u-grid-item {
		background: transparent !important;
	}

	/deep/.uni-scroll-view {
		padding-top: 0px !important;
	}

	page {
		background-color: #fcfcfc !important;
	}

	.icon {
		width: 72rpx;
		height: 72rpx;
	}

	.grid-text {
		height: 32rpx;
		font-size: 24rpx;
		font-family: PingFang SC-Regular, PingFang SC;
		font-weight: 400;
		color: #666666;
		line-height: 70rpx;
	}

	.content {
		margin: 0 20rpx 20rpx;
		// margin-top: 0rpx!important;
		border-radius: 8px 8px 8px 8px !important;
		background-color: transparent !important;
		width: auto;
	}

	.filter {
		display: flex;
		align-items: center;
		flex-direction: row;
		position: sticky;
		// top: 10vh;
		// background-color: white;
		z-index: 1000;
		background: #FFF2DC url("https://d-duomi.bigchun.com/images/shangbang/rectangle.png") no-repeat;
		//background-size: 100% 100%;
		// border-radius: 8px 8px 0px 0px;
		margin: 0 20rpx;

		//.title {
		//	width: 4rem;
		//}

		view {
			flex: 1;
			text-align: center;
			line-height: 70rpx;
			font-size: 24rpx;
			font-family: PingFang SC-Medium, PingFang SC;
			font-weight: 500;
			color: #777777;
			display: flex;
			align-items: center;
			justify-content: center;
		}

		u-icon {
			margin-left: 8rpx;
		}

		.active {
			font-size: 28rpx;
			font-family: PingFang SC-Medium, PingFang SC;
			font-weight: 500;
			color: #FC5351;
		}
	}

	.lable {
		border-left: transparent !important;
		border-radius: 0rpx 5rpx 5rpx 0rpx;
		left: -3rpx;
		padding: 0 5px;
		font-size: 10px;
		font-weight: 500;
		color: #FC5351;
		height: 32rpx;
		border: 1px solid #FC5351;
		display: flex;
		align-items: center;
		justify-content: center;
		align-content: center;
		position: relative;

	}

	.popup-box {
		padding-top: var(--status-bar-height);
		margin: 0 20rpx;
	}

	.area {
		height: 100%;
		max-height: 80vh;
		margin: 0px;
	}

	.nav-line {
		height: var(--window-top);
	}

	.check-right {
		height: 54px;
		font-size: 28rpx;
		font-family: PingFang SC-Medium, PingFang SC;
		font-weight: 500;
		color: #666666;
		line-height: 19px;
		align-items: center;
		display: flex;

		.active {
			font-size: 28rpx;
			font-family: PingFang SC-Medium, PingFang SC;
			font-weight: 500;
			color: #FC5351;
		}
	}

	.active {
		font-size: 28rpx;
		font-family: PingFang SC-Medium, PingFang SC;
		font-weight: 500;
		color: #FC5351;
	}

	.activeall {
		font-size: 24rpx;
		font-family: PingFang SC-Medium, PingFang SC;
		font-weight: 500;
		color: #FC5351;

		.title {
			color: #FC5351;
		}
	}

	.content {
		margin: 20rpx 0;
		border-radius: 8px 8px 8px 8px;
		background-color: white;
		// height: 100vh;
		// overflow: hidden;
	}

	.fenlei {
		background: url("https://d-duomi.bigchun.com/images/shangbang/group.png") no-repeat;
		background-size: 100% 100%;
		height: 50px;
		margin-top: 20rpx;
		line-height: 50px;
	}

	.fenlei-name {
		padding: 0px 5px 0px 10px;
		font-size: 14px;
		font-weight: bold;
		color: #333333;
		line-height: 16px;
	}

	.fenlei-desc {
		font-size: 12px;
		font-family: PingFang SC-Medium, PingFang SC;
		font-weight: 500;
		color: #333333;
	}

	.shop-address {
		font-size: 10px;
		font-family: PingFang SC-Medium, PingFang SC;
		font-weight: 500;
		color: #FFFFFF;
		line-height: 12px;
		background: rgba(0, 0, 0, 0.5);
		border-radius: 2px 2px 2px 2px;
		opacity: 1;
		padding: 4rpx;
		position: absolute;
		top: 180rpx;
		left: 30rpx;
		border-radius: 8rpx;
	}

	.shop-name {
		font-size: 12px;
		font-family: PingFang SC-Bold, PingFang SC;
		font-weight: bold;
		color: #333333;
		line-height: 14px;
		width: 100%;
		margin-left: 40rpx;
	}

	.shop-price {
		font-size: 14px;
		font-family: PingFang SC-Bold, PingFang SC;
		font-weight: bold;
		color: #FE7F1A;
		width: 100%;
		margin-left: 20rpx;
	}

	.f-item {
		display: flex;
		align-items: center;
		justify-content: center;
		width: 100%;
		height: 100upx;
		font-size: 28upx;
		// color: $font-color-base;
		position: relative;

		&.active {
			// color: $base-color;
			background: #fff;

			&:before {
				content: '';
				position: absolute;
				left: 0;
				top: 50%;
				transform: translateY(-50%);
				height: 36upx;
				width: 8upx;
				// background-color: $base-color;
				border-radius: 0 4px 4px 0;
				opacity: .8;
			}
		}
	}

	.right-aside {
		flex: 1;
		overflow-y: scroll;
		padding-left: 20upx;
	}

	.left-aside {
		flex-shrink: 0;
		width: 200upx;
		height: 80vh;
		background: #F4F4F4;
	}

	.myfujin {
		font-size: 24rpx;
		font-family: PingFang SC-Medium, PingFang SC;
		font-weight: 500;
		color: #333333;
		padding: 20rpx 35rpx;
		margin: 10rpx 20rpx 10rpx 20rpx;
		background: #F0F0F0;
		min-width: 65px;
		border-radius: 10rpx;
		text-align: center;
	}

	.areas {
		height: 88rpx;
		font-size: 24rpx;
		font-family: PingFang SC-Medium, PingFang SC;
		font-weight: 500;
		line-height: 32rpx;
		padding: 35rpx 25rpx;
		display: flex;
	}

	.list-cell {
		display: flex;
		box-sizing: border-box;
		width: 100%;
		padding: 10px 24rpx;
		overflow: hidden;
		color: #323233;
		font-size: 14px;
		line-height: 24px;
		background-color: #fff;
	}
</style>